package com.zjitc.model;

import java.util.Date;
import sun.management.counter.perf.PerfInstrumentation;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/25 15:14
 * @description:
 */
public class Product {
  private Integer pid;
  private String pname;
  private Double market_price;
  private Double shop_price;
  private String image;
  private String pdesc;
  private Integer is_hot;
  private Date pdate;
  private CategorySecond csid;

  public Product() {
  }

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }

  public Double getMarket_price() {
    return market_price;
  }

  public void setMarket_price(Double market_price) {
    this.market_price = market_price;
  }

  public Double getShop_price() {
    return shop_price;
  }

  public void setShop_price(Double shop_price) {
    this.shop_price = shop_price;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public String getPdesc() {
    return pdesc;
  }

  public void setPdesc(String pdesc) {
    this.pdesc = pdesc;
  }

  public Integer getIs_hot() {
    return is_hot;
  }

  public void setIs_hot(Integer is_hot) {
    this.is_hot = is_hot;
  }

  public Date getPdate() {
    return pdate;
  }

  public void setPdate(Date pdate) {
    this.pdate = pdate;
  }

  public CategorySecond getCsid() {
    return csid;
  }

  public void setCsid(CategorySecond csid) {
    this.csid = csid;
  }

  @Override
  public String toString() {
    return "Product{" +
        "pid=" + pid +
        ", pname='" + pname + '\'' +
        ", market_price=" + market_price +
        ", shop_price=" + shop_price +
        ", image='" + image + '\'' +
        ", pdesc='" + pdesc + '\'' +
        ", is_hot=" + is_hot +
        ", pdate=" + pdate +
        ", csid=" + csid +
        '}';
  }
}
